<%--
  Created by IntelliJ IDEA.
  User: ZTencent
  Date: 2022/12/29
  Time: 21:07
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fm" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link href="${pageContext.request.contextPath}/statics/assets/css/bootstrap.min.css" rel="stylesheet" />
    <link rel="stylesheet" href="${pageContext.request.contextPath}/statics/css/style.css"/>
    <link href="${pageContext.request.contextPath}/statics/assets/css/codemirror.css" rel="stylesheet">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/statics/assets/css/ace.min.css" />
    <link rel="stylesheet" href="${pageContext.request.contextPath}/statics/font/css/font-awesome.min.css" />
    <!--[if lte IE 8]>
    <link rel="stylesheet" href="assets/css/ace-ie.min.css" />
    <![endif]-->
    <script src="${pageContext.request.contextPath}/statics/js/jquery-1.9.1.min.js"></script>
    <script src="${pageContext.request.contextPath}/statics/assets/js/bootstrap.min.js"></script>
    <script src="${pageContext.request.contextPath}/statics/assets/js/typeahead-bs2.min.js"></script>
    <script src="${pageContext.request.contextPath}/statics/assets/layer/layer.js" type="text/javascript" ></script>
    <script src="${pageContext.request.contextPath}/statics/assets/laydate/laydate.js" type="text/javascript"></script>
    <title>商户审核</title>
</head>

<body>
<div class="margin clearfix">
    <div class="detailed_style clearfix">
        <ul class="shop_content clearfix" style="height: 100px">
            <li class="shop_name"><label class="label_name">订单号：</label><span class="info">${order.outTradeNo}</span></li>
            <li><label class="label_name">订单总价：</label><span class="info">${order.totalAmount}</span></li>
            <li><label class="label_name">优惠卷：</label><span class="info">${order.useCoupon}</span></li>
            <li><label class="label_name">支付金额：</label><span class="info">${order.payPrice}</span></li>
            <li><label class="label_name">优惠金额：</label><span class="info">${order.couponPrice}</span></li>
        </ul>
        <ul class="shop_content clearfix" style="height: 100px">
            <li class="shop_name"><label class="label_name">交易时间：</label><span class="info"><fmt:formatDate value="${order.placeOrderTime}" pattern="yyyy-MM-dd"/></span></li>
            <li><label class="label_name">配送时间：</label><span class="info"><fmt:formatDate value="${order.deliveryTime}" pattern="yyyy-MM-dd"/></span></li>
            <li><label class="label_name">订单状态：</label><span class="info">
                 <c:choose>
                     <c:when test="${order.orderType==1}">
                         未支付
                     </c:when>
                     <c:when test="${order.orderType==2}">
                         已支付
                     </c:when>
                     <c:when test="${order.orderType==3}">
                         已发货
                     </c:when>
                     <c:when test="${order.orderType==4}">
                         骑手接单
                     </c:when>
                     <c:when test="${order.orderType==5}">
                         已完成
                     </c:when>
                     <c:when test="${order.orderType==6}">
                         已取消
                     </c:when>
                 </c:choose>
            </span></li>
            <li><label class="label_name">收货地址：</label><span class="info">${order.ship.address}</span></li>
            <li><label class="label_name">收货人：</label><span class="info">${order.ship.consignee}</span></li>
            <li><label class="label_name">联系电话：</label><span class="info">${order.ship.addPhone}</span></li>
        </ul>
    </div>
    <c:forEach var="m" items="${ms}" varStatus="status">
        <div class="detailed_style clearfix">
            <em class="type"></em>
            <div class="shop_logo"><img src="${m.menuItem.mimg}" width="200px" height="150px" /></div>
            <ul class="shop_content clearfix" style="height: 100px">
                <li class="shop_name"><label class="label_name">商品名称：</label><span class="info">${m.menuItem.mname}</span></li>
                <li><label class="label_name">商品价格：</label><span class="info">${m.menuItem.mprice}</span></li>
                <li><label class="label_name">配送金额：</label><span class="info">${m.menuItem.deliveryAmount}</span></li>

            </ul>
            <ul class="shop_content" style="height: 50px">

                <li><label class="label_name">规格：</label>

                    <span class="info">${m.spec.sname}&nbsp;</span>
                </li>
            <li style="width: 400px"><label class="label_name">数量：</label>
                ${co[status.index].count}
             </li>

            </ul>
        </div>
    </c:forEach>
</div>
</body>

</html>

